package cn.t.core.enums;

import lombok.Data;

import java.io.Serializable;

@Data
public class EnumData implements Serializable {
    private String code;
    private String name;

    public static EnumData getInstance(String code, String name) {
        EnumData enumData = new EnumData();
        enumData.setCode(code);
        enumData.setName(name);
        return enumData;
    }
}
